﻿
{% extends 'index.html' %}
{% load i18n %}

{% block title %}{% trans "Signin" %}{% endblock %}

{% block center-col %}

{% if messages %}
<ul class="messages" style="list-style:none ;">
    {% for message in messages %}
    <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
    {% endfor %}
</ul>
{% endif %}

<h3> تسجيل الدخول  </h3>
<form class="ym-form" action="" method="post">
  {% csrf_token %}

    {{ form.non_field_errors }}
    {% for field in form %}
    {{ field.errors }}
    {% comment %} Displaying checkboxes differently {% endcomment %}
    {% if field.name == 'remember_me' %}
   <div style<div class="ym-fbox-check">
   {{ field }} 
  {{ field.label }} 
  </div>
    {% else %}
    <p>
    {{ field.label_tag }} 
    {{ field }}
    </p>
    {% endif %}
    {% endfor %}
    
  <input type="submit" value="{% trans "Signin" %}" />
      
  <p class="forgot-password">
      <a href="/ar/accounts/signup/" > مسمتخدم جديد ؟ </a>
<br/>
</form>
{% endblock %}
